package com.java.lang;

import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class DateDemo {
	
	public static void main(String[] args) {
		Date date=new Date();
		Date date2=new Date();
		
		System.out.println(date.toString());
		System.out.println(date2.toString());
		System.out.println(date.after(date2));
		System.out.println(date.before(date2));
		System.out.println(date.equals(date2));
		//时区
		TimeZone timeZone=TimeZone.getDefault(); 
		System.out.println(timeZone.getID());
		System.out.println(timeZone.getDisplayName());
		//地区
		Locale locale=Locale.getDefault();
		locale.setDefault(Locale.US);
		System.out.println(locale.getDisplayName());
		System.out.println(locale.getCountry());
		
	}
	

}
